//
//  UIView+YWK.h
//  YWKUser
//
//  Created by  WangDan on 16/4/18.
//  Copyright © 2016年 iCareTech. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (YWK)

/**
 *  获取视图的ViewController
 *
 *  @return UIViewController
 */
- (UIViewController *)getViewController;

/**
 *  设置掩膜
 *
 *  @param centerFrame 掩膜外的区域，即：除了该区域，其他区域被掩盖
 */
- (void)setHollowWithCenterFrame:(CGRect)centerFrame;

/**
 *  View转图片
 *
 *  @param frame 转图片部分的Frame
 *
 *  @return UIImage
 */
- (UIImage *)imageFromViewWithFrame:(CGRect)frame;

- (void)moveViewTo:(CGRect)frame animateTime:(CGFloat)time;

@end
